<template>
	<view class="my-order-container">
		<view class="my-flex">
			<view class="left">
				<view class="top">{{ listData.title }}</view>
				<view class="bottom">{{ listData.subTitle }}</view>
			</view>
			<view class="right">
				<up-avatar size="36" shape="square" :src="`${constInfo.srcConst}${listData.url}`"></up-avatar>
			</view>
		</view>
		<view class="equity-bottom" @click="btnGoOrder">
			<up-line  color="#EBF5FF"></up-line>
			<view class="equity-box">
				<view class="bottom-left">
					<up-avatar size="50" shape="square" :src="`${constInfo.srcConst}/sxzz/youKu.png`"></up-avatar>
				</view>
				<view class="bottom-right">
					<view class="right-top">优酷联合会员</view>
					<view class="right-bottom">优酷视频会员月卡+5元支付宝立减金*6张</view>
				</view>
			</view>
		</view>
		<view class="equity-bottom" @click="btnGoOrder">
			<up-line  color="#EBF5FF"></up-line>
			<view class="equity-box">
				<view class="bottom-left">
					<up-avatar size="50" shape="square" :src="`${constInfo.srcConst}/sxzz/souHu.png`"></up-avatar>
				</view>
				<view class="bottom-right">
					<view class="right-top">搜狐联合会员</view>
					<view class="right-bottom">搜狐视频会员月卡+5元支付宝立减金*6张</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
import { constStore } from '@/store/const.js';
//引入防抖函数
const { constInfo } = constStore();
const props = defineProps({
	listData: {
		type: Object,
		default: () => {}
	}
});
const btnGoOrder=()=>{
	uni.navigateTo({
		url:'/pages/my/orderList'
	})
}
</script>

<style lang="scss" scoped>
.my-order-container {
	width: 700rpx;
	background: #ffffff;
	
	box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(0, 0, 0, 0.1);
	border-radius: 24rpx 24rpx 24rpx 24rpx;
	margin: 0 auto;
	margin-top: 28rpx;
	position: relative;
	box-sizing: border-box;
	padding: 0rpx 0rpx 30rpx 0rpx;
}
.equity-bottom {
	margin: 0 auto;
	padding:0 46rpx;
}
.equity-box {
	display: flex;
	margin-top: 20rpx;
	.bottom-left {
		// border: 2rpx dashed pink;
	}
	.bottom-right{
		margin-left: 32rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		.right-top{
			font-family: MiSans, MiSans;
			font-weight: 600;
			font-size: 28rpx;
			color: #1A1A1A;
			line-height: 33rpx;
		}
		.right-bottom{
			font-weight: 300;
			font-size: 20rpx;
			color: #808080;
		}
	}
}
.my-flex {
	display: flex;
	justify-content: space-between;
	padding: 46rpx;

	.left {
		.top {
			font-weight: 600;
			font-size: 32rpx;
			color: #1a1a1a;
			line-height: 38rpx;
		}
		.bottom {
			font-family: MiSans, MiSans;
			font-weight: 300;
			font-size: 20rpx;
			color: #808080;
			margin-top: 20rpx;
		}
	}
	.right {
	}
}
</style>
